﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompany.MyProject.Extensions.Middlewares;

public static class MiddlewareHelper
{
    /// <summary>
    /// 记录请求响应日志
    /// </summary>
    /// <param name="app"></param>
    /// <returns></returns>
    public static IApplicationBuilder UseRequestResponseLogMiddle(this IApplicationBuilder app)
    {
        return app.UseMiddleware<RequestResponseLogMiddleware>();
    }
}
